{% extends "base/base.html" %}
{% block navbar-collapse %}
  <form class="navbar-form navbar-right" role="form" method="post" >
    {% csrf_token %}
    <div class="form-group">
      <input class="form-control" placeholder="user name :" type="text" name="user"></input>
    </div>
    <div class="form-group">
      <input class="form-control" placeholder="password" type="password"  name="password"></input>
    </div>
    <button class="btn btn-success" type="submit">Login in</button>

</form>

  </input>
{% endblock %}

{% block body %}
  {% if name %}
    <h2>welcome {{ name }}</h2>
  {% else %}
    <h2>Customer please login !</h2>
    <div class="row">
      <div class="col-md-6">
        <h3>Tips</h3>
        <p>may be you need  to <code>sign up</code> or <strong class="text-success">log in</strong></p>
      </div>
    </div>
  {% endif %}
{% endblock %}